package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @ClassName CrmLinkmanSaveDto
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2020/7/20 17:57
 **/
@Data
@ApiModel("联系人编辑DTO")
public class CrmLinkmanSaveDto extends BaseEntity {

    @ApiModelProperty(value = "客户ID")
    @TableField("crm_id")
    private Integer crmId;

    @ApiModelProperty(value = "客户名称")
    @TableField("crm_name")
    private String crmName;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("gender")
    private String gender;

    @ApiModelProperty(value = "拼音码")
    @TableField("letter_code")
    private String letterCode;

    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" )
    private LocalDate birthday;

    @ApiModelProperty(value = "部门")
    @TableField("dept")
    private String dept;

    @ApiModelProperty(value = "职务")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "办公电话")
    @TableField("office_phone")
    private String officePhone;

    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "是否主联系人(0否1是)")
    @TableField("is_main")
    private Boolean isMain;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "QQ号")
    @TableField("qq")
    private String qq;

    @ApiModelProperty(value = "微信")
    @TableField("weixin")
    private String weixin;

    @ApiModelProperty(value = "联系地址")
    @TableField("contact_address")
    private String contactAddress;

    @ApiModelProperty(value = "爱好")
    @TableField("hobby")
    private String hobby;

    @ApiModelProperty(value = "忌讳")
    @TableField("taboo")
    private String taboo;

    @ApiModelProperty(value = "描述/备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "自定义字段数据")
    @TableField("define_fields")
    private String defineFields;
}
